package com.jiang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiang.dto.Result;
import com.jiang.entity.SeckillVoucher;
import com.jiang.entity.VoucherOrder;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiang
 * @since 2024-3-20
 */
public interface IVoucherOrderService extends IService<VoucherOrder> {

    Result seckillVoucher(Long voucherId);


    Result createVoucherOrder(Long voucherId, SeckillVoucher voucher, Long userId);


    void createVoucherOrder(VoucherOrder voucherOrder);
}
